<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
    <table border="1">
                     <tr>
                         <th>店名</th>
                         <th>商品图片</th>
                         <th>商品名</th>
                         <th>口味</th>
                         <th>单价</th>
                         <th>数量</th>
                     </tr>
                     
                     <c:forEach items="${carts}" var="cart">
                     <tr>
                         <th>${cart.shopName }</th>
                         <th><img alt="" src="${pageContext.request.contextPath}/images/${cart.goodsPhoto}"></th>
                         <th>${cart.goodsName}</th>
                         <th>${cart.goodsTaste }</th>
                         <th>${cart.goodsPrice }</th>
                         <th>${cart.cartNum }</th>
                     </tr>
                     </c:forEach>
                 </table>
</body>
</html>